﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookStore.Data;
using System.Data;

namespace BookStore.Bussiness
{
    public class orderDetailService
    {
        #region getbyID
        public static orderDetailInfo getbyID(string orderID) {
            return orderDetailController.getbyID(orderID);
        }
        #endregion

        #region getAll
        public static DataTable getAll() {
            return orderDetailController.ListOrderDetail();
        }
        #endregion

        #region insert
        public static bool insertOrderDetail(orderDetailInfo objOrderDetail) {
            return orderDetailController.insertOrderDetail(objOrderDetail);
        }
        #endregion

        #region update
        public static bool updateOrderDetail(orderDetailInfo objOrderDetail)
        {
            return orderDetailController.updateOrderDetail(objOrderDetail);
        }
        #endregion

        #region delete
        public static bool deleteOrderDetail(string orderID) {
            return orderDetailController.deleteOrderDetail(orderID);
        }
        #endregion
    }
}
